home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 22
/
freelog 22.iso
/
Prog
/
Djgpp
/
GPC2952B.ZIP
/
doc
/
gpc
/
docdemos
/
chdirdemo.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
2001-02-09
|
305 b
|
14 lines
program ChDirDemo;
var
Foo: String (127);
begin
WriteLn ('Enter directory name to change to:');
ReadLn (Foo);
{$I-} { Don't abort the program on error }
ChDir (Foo);
if IOResult <> 0 then
WriteLn ('Cannot change to directory `', foo, '''.')
else
WriteLn ('Okay.')
end.